package com.xmy.erp.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 课程商品表
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-09
 */
@ApiModel(value = "Shopping对象", description = "课程商品表")
public class Shopping implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("季度（学期）")
    private Integer quarterNum;

    @ApiModelProperty("校区id")
    private Long schoolId;

    @ApiModelProperty("课程id")
    private Long courseId;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("班级")
    private Long gradeId;

    @ApiModelProperty("状态1上加，0未上架")
    private Integer status;

    @ApiModelProperty("剩余次数")
    private Integer residueNum;

    @ApiModelProperty("是否删除，1是，0否")
    private Integer deleted;

    private LocalDateTime createdAt;

    @ApiModelProperty("创建人")
    private Long createdId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getYearPart() {
        return yearPart;
    }

    public void setYearPart(Integer yearPart) {
        this.yearPart = yearPart;
    }
    public Integer getQuarterNum() {
        return quarterNum;
    }

    public void setQuarterNum(Integer quarterNum) {
        this.quarterNum = quarterNum;
    }
    public Long getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }
    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }
    public Integer getYearClassId() {
        return yearClassId;
    }

    public void setYearClassId(Integer yearClassId) {
        this.yearClassId = yearClassId;
    }
    public Long getGradeId() {
        return gradeId;
    }

    public void setGradeId(Long gradeId) {
        this.gradeId = gradeId;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Integer getResidueNum() {
        return residueNum;
    }

    public void setResidueNum(Integer residueNum) {
        this.residueNum = residueNum;
    }
    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }
    public Long getCreatedId() {
        return createdId;
    }

    public void setCreatedId(Long createdId) {
        this.createdId = createdId;
    }

    @Override
    public String toString() {
        return "Shopping{" +
            "id=" + id +
            ", name=" + name +
            ", yearPart=" + yearPart +
            ", quarterNum=" + quarterNum +
            ", schoolId=" + schoolId +
            ", courseId=" + courseId +
            ", yearClassId=" + yearClassId +
            ", gradeId=" + gradeId +
            ", status=" + status +
            ", residueNum=" + residueNum +
            ", deleted=" + deleted +
            ", createdAt=" + createdAt +
            ", createdId=" + createdId +
        "}";
    }
}
